package top.javahai.subtlechat.api.pojo;


import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import top.javahai.subtlechat.api.GlobalConst;

import java.io.Serializable;

/**
 * @author Qiangfanghao
 */
@Document(collection="parameters")
public class Parameters implements Serializable {

    @Id
    private String id;

    private String name;

    private String type;

    private String value;

    private int visible = GlobalConst.VISIBLE;

    private int updatable = GlobalConst.WRITABLE;

    private String description;


    @Override
    public String toString() {
        return "Parameters{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", value='" + value + '\'' +
                ", visible=" + visible +
                ", updatable=" + updatable +
                ", description='" + description + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getVisible() {
        return visible;
    }

    public void setVisible(int visible) {
        this.visible = visible;
    }

    public int getUpdatable() {
        return updatable;
    }

    public void setUpdatable(int updatable) {
        this.updatable = updatable;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
